package com.zc.portal.iface.repository.impl;

import com.zc.portal.domain.dto.SysUser;
import com.zc.portal.iface.repository.SysUserRepository;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository("sysUserRepository")
public class SysUserRepositoryImpl implements SysUserRepository {

    @Autowired
    private SqlSessionTemplate sessionTemplate;

    @Override
    public SysUser querySysUserByCode(String userCode) {
        return sessionTemplate.selectOne(NAME_SPACE + "querySysUserByCode", userCode);
    }
}
